// Package factories 存放 {{PackageName}} 工厂方法
package factories

import (
	"github.com/bxcodec/faker/v4"
	"github.com/runningwater/gohub/app/models/{{PackageName}}"
)

func Make{{StructNamePlural}}(times int) []{{PackageName}}.{{StructName}} {
	var objs []{{PackageName}}.{{StructName}}

	// 设置唯一值, 如 {{StructName}} 模型中的某个字段需要唯一
	faker.SetGenerateUniqueValues(true)

	for range times {
		model := {{PackageName}}.{{StructName}}{
			// FIXME()
		}
		objs = append(objs, model)
	}
	return objs
}
